package net.flyinggroup.scs.gitter.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "users")
@NoArgsConstructor
@AllArgsConstructor(staticName = "of", onConstructor_ = @PersistenceConstructor)
public class User {
    @Id
    @NonNull
    private String id;
    @NonNull
    private String name;
    @NonNull
    private String displayName;
}
